package com.finance.entity;

import java.util.Date;

/**
 * 贷款实体类
 * 
 * @author zun
 *
 */
public class Loan {
	
	public static final int TYPE_DAY = 0;
	public static final int TYPE_ZHOU = 1;
	public static final int TYPE_MOUTH = 2;

	/**
	 * 主键
	 */
	private String loanId;
	
	private String productId;
	private String productName;
	/**
	 * 用户Id
	 */
	private String userId;
	/**
	 * 用户名
	 */
	private String userName;
	/**
	 * 客户ID
	 */
	private String tyUserId;
	/**
	 * 客户姓名
	 */
	private String tyUserName;
	/**
	 * 贷款类别(0日息1周息2月息)
	 */
	private Integer loanType;
	public String getLoanTypeName(){
		if(loanType == TYPE_DAY){
			return "日息";
		}else if(loanType == TYPE_ZHOU){
			return "周息";
		}else if(loanType == TYPE_MOUTH){
			return "月息";
		}
		return "未知";
	}
	/**
	 * 贷款金额
	 */
	private double loanMoney;
	/**
	 * 合同金额
	 */
	private double contractMoney;
	/**
	 * 开始时间
	 */
	private Date startTime;
	/**
	 * 结束时间
	 */
	private Date stopTime;
	/**
	 * 家访金额
	 */
	private double homeVisitsMoney;
	/**
	 * 中介费用
	 */
	private double intermediary;
	/**
	 * 保证金
	 */
	private double bond;
	/**
	 * 实际到款金额
	 * @return
	 */
	private double actualMoney;
	/**
	 * 实际还款金额
	 * @return
	 */
	private double stillMoney;
	/**
	 * 实际收款金额
	 * @return
	 */
	private double collectMoney;
	/**
	 * 创建时间
	 * @return
	 */
	private Date createTime;
	
	/**
	 * 已换
	 */
	private double alreadyRepaid;
	/**
	 * 未还
	 */
	private double notYet;
	
	
	//***********
	private double dayMoney;
	public double getDayMoney() {
		return dayMoney;
	}
	public void setDayMoney(double dayMoney) {
		this.dayMoney = dayMoney;
	}
	//*******
	public String getLoanId() {
		return loanId;
	}
	public void setLoanId(String loanId) {
		this.loanId = loanId;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getTyUserId() {
		return tyUserId;
	}
	public void setTyUserId(String tyUserId) {
		this.tyUserId = tyUserId;
	}
	public String getTyUserName() {
		return tyUserName;
	}
	public void setTyUserName(String tyUserName) {
		this.tyUserName = tyUserName;
	}
	public Integer getLoanType() {
		return loanType;
	}
	public void setLoanType(Integer loanType) {
		this.loanType = loanType;
	}
	public double getLoanMoney() {
		return loanMoney;
	}
	public void setLoanMoney(double loanMoney) {
		this.loanMoney = loanMoney;
	}
	public double getContractMoney() {
		return contractMoney;
	}
	public void setContractMoney(double contractMoney) {
		this.contractMoney = contractMoney;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getStopTime() {
		return stopTime;
	}
	public void setStopTime(Date stopTime) {
		this.stopTime = stopTime;
	}
	public double getHomeVisitsMoney() {
		return homeVisitsMoney;
	}
	public void setHomeVisitsMoney(double homeVisitsMoney) {
		this.homeVisitsMoney = homeVisitsMoney;
	}
	public double getIntermediary() {
		return intermediary;
	}
	public void setIntermediary(double intermediary) {
		this.intermediary = intermediary;
	}
	public double getBond() {
		return bond;
	}
	public void setBond(double bond) {
		this.bond = bond;
	}
	public String getProductId() {
		return productId;
	}
	public void setProductId(String productId) {
		this.productId = productId;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public double getActualMoney() {
		return actualMoney;
	}
	public void setActualMoney(double actualMoney) {
		this.actualMoney = actualMoney;
	}
	public double getStillMoney() {
		return stillMoney;
	}
	public void setStillMoney(double stillMoney) {
		this.stillMoney = stillMoney;
	}
	public double getCollectMoney() {
		return collectMoney;
	}
	public double getAlreadyRepaid() {
		return alreadyRepaid;
	}
	public void setAlreadyRepaid(double alreadyRepaid) {
		this.alreadyRepaid = alreadyRepaid;
	}
	public double getNotYet() {
		return notYet;
	}
	public void setNotYet(double notYet) {
		this.notYet = notYet;
	}
	public void setCollectMoney(double collectMoney) {
		this.collectMoney = collectMoney;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	private Integer num;
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
}
